/**
 * 
 */
package lt.vin.exaatto.shared;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * @author Vincentas
 *
 */
public class UserInformation implements IsSerializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7358799534953920781L;

	public static final UserInformation FAKE = new UserInformation();

	private String loginUrl;
	
	private String logoutUrl;
	
	private String username;
	
	private List<Chat> chats = new ArrayList<Chat>();
	
	public boolean isLoggedIn() {
		return username != null;
	}
	
	/**
	 * @return the loginUrl
	 */
	public String getLoginUrl() {
		return loginUrl;
	}

	/**
	 * @param loginUrl the loginUrl to set
	 */
	public void setLoginUrl(String loginUrl) {
		this.loginUrl = loginUrl;
	}

	/**
	 * @return the logoutUrl
	 */
	public String getLogoutUrl() {
		return logoutUrl;
	}

	/**
	 * @param logoutUrl the logoutUrl to set
	 */
	public void setLogoutUrl(String logoutUrl) {
		this.logoutUrl = logoutUrl;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the chats
	 */
	public List<Chat> getChats() {
		return chats;
	}

	/**
	 * @param chats the chats to set
	 */
	public void setChats(List<Chat> chats) {
		this.chats = chats;
	}
}
